import Vue from 'vue'
import Router from 'vue-router'
import list from '@/views/list'
import detail from '@/views/detail'
import shelf from '@/views/shelf'

Vue.use(Router)

export default new Router({
  routes: [
    {
        path: '/',
        redirect:'/list'
    },
    {
        path:'/list',
        component:list
    },
    {
        path:'/detail/:id',
        component:detail
    },
    {
        path:'/shelf',
        component:shelf
    }
  ]
})
